﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Text;
using Frame.Lib.Core.Right;

public partial class Admin_Right_Test : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            BindView();
        }
        
    }

  

    private void BindView()
    {
        DataTable dt = SystemRightBO.GetRightRect();
        StringBuilder sb = new StringBuilder();
        sb.Append("<table>");
        foreach (DataRow dr in dt.Rows)
        {
            sb.Append("<tr>");

            for (int i = 0; i < dt.Columns.Count; i++)
            {
                sb.Append("<td>" + dr[i] + "</td>");
            }

            sb.Append("</tr>");
        }
        sb.Append("</table>");

        tbl.Text = sb.ToString();

        
    }

   
}
